package com.qijian.maindata.domain;

import com.qijian.common.annotation.JoinField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 辅助属性值详情对象 bi_product_attribute_item_detail
 *
 * @author qijian
 * @date 2022-01-13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("bi_product_attribute_item_detail")
public class ProductAttributeItemDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    /** 主表id */
    @Excel(name = "主表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    @JoinField
    private Long attrItemId;

    /** 编码 */
    @Excel(name = "编码")
    @ApiModelProperty(value = "编码")
    private String number;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    /** 是否选择 */
    @Excel(name = "是否选择")
    @ApiModelProperty(value = "是否选择")
    private Boolean isSelect;

    /** 是否默认 */
    @Excel(name = "是否默认")
    @ApiModelProperty(value = "是否默认")
    private Boolean isDefault;

    /** 是否禁用 */
    @Excel(name = "是否禁用")
    @ApiModelProperty(value = "是否禁用")
    private Boolean isDisabled;

    /** 辅助属性内码 */
    @Excel(name = "辅助属性内码")
    @ApiModelProperty(value = "辅助属性内码")
    private String innerCode;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序")
    private Integer sort;

}
